package com.sunk.ytmall.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.sunk.ytmall.entity.Goods;
import com.sunk.ytmall.entity.Show;
import com.sunk.ytmall.entity.vo.ProductInfoVO;
import com.sunk.ytmall.mapper.GoodsMapper;
import com.sunk.ytmall.service.IGoodsService;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService{
    @Override
    public ProductInfoVO getProductInfo(Goods goods) {
        return baseMapper.getProductInfo(goods);
    }

    @Override
    public void addSoldNum(Goods goods) {
        baseMapper.addSoldNum(goods);
    }


}
